<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //字符串会涉及到动态部分(传统的字符串拼接)
        var person = {
            name: "赵书正",
            age: "22",
            address: "郑州"
        };

        let address = "传统-我是" + person.name + "，今年" + person.age + "岁，在" + person.address + "上大学。";
        console.log(address);

        //es6的语法：模板字符串（这个还支持换行）
        let address2 = `ES6-我是${person.name}，
        今年${person.age}岁，
        在${person.address}上大学。`;
        console.log(address2);
    </script>
</body>

</html>